Skip to content

Conversation

@nachatz
Copy link
Contributor

@nachatz nachatz commented Jan 25, 2026

Motivation

Expanding async producer support. Some functions are simply missing mappings to the async sibling.

Modifications

Adds producer connectivity functionality to the async producer.

Issue

#278

Copy link
Contributor

@BewareMyPower BewareMyPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_connected is a wrong legacy design that should not have been added. Actually, it returns false during the reconnection. For example,

  • t0: The ownership changed, broker sent a notification to client to disconnect
  • t0 + 100 ms: Schedule a new reconnection
  • t1: The reconnection was done

is_connected() returns false between [t0, t0 + 100 ms). However, this result is meaningless to users. Users should not do anything for it.

@nachatz
Copy link
Contributor Author

nachatz commented Jan 27, 2026

is_connected is a wrong legacy design that should not have been added. Actually, it returns false during the reconnection. For example,

  • t0: The ownership changed, broker sent a notification to client to disconnect
  • t0 + 100 ms: Schedule a new reconnection
  • t1: The reconnection was done

is_connected() returns false between [t0, t0 + 100 ms). However, this result is meaningless to users. Users should not do anything for it.

Is there a similar option we would want to add around this functionality? Happy to pickup any other async.io tasks to get as much support added ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants